package com.itheima.service;

import com.itheima.jopo.Classes;
import com.itheima.jopo.PageBean;

import java.time.LocalDate;

/**
 * ClassesService
 *
 * @author liliudong
 * @version 1.0
 * @description 班级Service
 * @date 2023/5/1 10:53
 */
public interface ClassesService {
    /**
     * 新增一个班级
     *
     * @param classes
     */
    void save(Classes classes);

    /**
     * 根据ID删除
     *
     * @param id
     */
    void removeById(Integer id);

    void updateById(Classes classes);

    Classes getById(Integer id);

    PageBean selectPage(Integer page, Integer pageSize, String name, LocalDate begin, LocalDate end);

    boolean existByName(String name);
}
